package com.ChengXiZi.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 用户-社区关系表
 *
 * @author ChengX
 * @since 2025-04-21 10:27:12
 */
@Data
@Builder
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "userCommunity对象", description = "用户-社区关系表")
public class UserCommunity {

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty("社区id")
    private Long communityId;

    @ApiModelProperty("角色")
    private Integer role;

    @ApiModelProperty("加入时间")
    private LocalDateTime joinTime;

    @ApiModelProperty("状态")
    private Integer status;
}
